Type.registerNamespace('ModWatch');

ModWatch.ConfirmDialogModAlertBehavior = function(element) { 
    ModWatch.ConfirmDialogModAlertBehavior.initializeBase(this, [element]);

	this._notifyModMessage = null;
}

ModWatch.ConfirmDialogModAlertBehavior.prototype = {

	get_notifyModMessage : function()
	{
		return this._notifyModMessage;
	},

	set_notifyModMessage : function(notifyModMessage)
	{
		if (!notifyModMessage || notifyModMessage == null)
			this._notifyModMessage = '';
		else
			this._notifyModMessage = notifyModMessage;
	},

	checkChange : function(e) {
		if (ModWatch.ConfirmDialogModAlertBehavior.callBaseMethod(this, 'isChangeDetected'))
		{
			return confirm(this._notifyModMessage);
		}

		return true;
	}

}

ModWatch.ConfirmDialogModAlertBehavior.registerClass('ModWatch.ConfirmDialogModAlertBehavior', ModWatch.ModAlertBehaviorBase);

if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
